/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ntb.models;

import com.ntb.entities.Users;
import java.util.Iterator;

/**
 *
 * @author DATBP
 */
public interface UsersDAO {
    
    public Iterator<Users> getList(String username, int groupId, int active, int page);

    public int getPageCount(String username, int groupId, int active);

    public Users getRow(int id);

    public Users getUser(String username);

    public int login(String username, String password);
    
    public int updateRememberCode(String rememberCode, int userId);

    public int checkRememberCode(String rememberCode, int userId);

    public int updatePassword(int userId);

    public int updatePassword(String password, int userId);
    
    public int updateForgotPassword(String newPassword, String forgotPasswordCode, int userId);

    public int checkForgotPasswordCode(String forgotPasswordCode, int userId);

    public int add(Users object);

    public int update(Users object);

    public int delete(int id);

    public int active(int id);
    
    public int checkUsername(String username);
    
    public int checkEmail(String email);
}
